package model

type Collect struct {
	UserId    uint    `json:"user_id" gorm:"primary_key"`
	ArticleId uint    `json:"article_id" gorm:"primary_key"`
	User      User    `gorm:"foreignKey:user_id;constraint:OnDelete:CASCADE;"`
	Article   Article `gorm:"foreignKey:article_id;constraint:OnDelete:CASCADE;"`
}
